import request from '@/axios'
import type { CurdData } from './types'

export const getListApi = (params?: any) => {
  return request.get({ url: '/admin/miner/video', params })
}
export const changeStatusApi = (data) => {
  return request.put({ url: '/admin/miner/video/status', data })
}
export const delDataApi = (data) => {
  return request.delete({ url: `/admin/miner/video`, data })
}
export const getEnumApi = (params?: any) => {
  return request.get({ url: '/admin/miner/video/resource', params })
}
export const createDataApi = (data) => {
  return request.post({ url: '/admin/miner/video', data })
}
export const getInfoApi = (id: string) => {
  return request.get({ url: '/admin/miner/video/' + id })
}
export const editDataApi = (data) => {
  return request.put({ url: `/admin/miner/video`, data })
}
